{% extends "admin/admin_base.html" %}


    {% block content %}
<div>
    <div style='height:30px; color: #8F1930'>
        <h2>更新机器人配置</h2>
        <!-- 上传地图列表 -->
        <div>
            <div style='height:30px'>
                <hr>
            </div>
            <form action="{{url_for('admin.upload_map_list')}}" method="POST"
                  enctype="multipart/form-data">
                <div style='height:30px'>
                    <span style='display:inline-block;margin-right:5px'>上传地图列表:</span>
                    <input type="file" multiple="" name="file" accept=".pgm,.png,.yaml,.json"/>
                </div>
                <br>
                <input type="submit" value="上传"/>
            </form>

        </div>

        <!-- 上传音乐列表 -->
        <div>
            <div style='height:30px'>
                <hr>
            </div>
            <form action="{{url_for('admin.upload_music_list')}}" method="POST"
                  enctype="multipart/form-data">
                <div style='height:30px'>
                    <span style='display:inline-block;margin-right:5px'>上传音乐列表:</span>
                    <input type="file" multiple="" name="file" accept=".mp3,.wav"/>
                </div>
                <br>
                <input type="submit" value="上传"/>
            </form>

        </div>

        <!-- 恢复ros_config.yaml初始化 -->
        <div>
            <div style='height:30px'>
                <hr>
                <form action="{{url_for('admin.initialization_ros_config')}}" method="POST"
                      enctype="multipart/form-data">
                    <div style='height:30px'>
                        <span style='display:inline-block;margin-right:5px'>恢复ros_config.yaml初始化:</span>
                    </div>
                    <p><input type="submit" value="恢复初始化"/></p>
                </form>
            </div>


            <!-- 下载ros_config.yaml -->
            <div>
                <div style='height:30px'>
                    <hr>
                </div>
                <form action="{{url_for('admin.download_ros_config')}}" method="GET"
                      enctype="multipart/form-data">
                    <div style='height:30px'>
                        <span style='display:inline-block;margin-right:5px'>下载ros_config.yaml:</span>
                    </div>
                    <input type="submit" value="下载"/>
                </form>
            </div>

            <!-- 上传ros_config.yaml -->
            <div>
                <div style='height:30px'>
                    <hr>
                </div>
                <form action="{{url_for('admin.upload_ros_config')}}" method="POST"
                      enctype="multipart/form-data">
                    <div style='height:30px'>
                        <span style='display:inline-block;margin-right:5px'>上传ros_config.yaml:</span>
                        <input type="file" name="file" accept=".yaml"/>
                    </div>
                    <br>
                    <input type="submit" value="更新"/>
                </form>
            </div>

            <!-- 查看参数配置表 -->
            <div>
                <div style='height:30px'>
                    <hr>
                </div>
                <div style='height:30px'>
                    <span style='display:inline-block;margin-right:5px'>查看参数配置表:</span>
                    <a href="{{url_for('admin.view_configure')}}">参数配置表</a>

                </div>
            </div>
        </div>
    {% endblock %}